package com.wyz.calibur.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: wei yz
 * @Date: 2022/7/3 16:01
 */
@RestController
@RequestMapping("/user")
public class UserInfoController {

    @Value("${wyz.username:}")
    private String username;

    @GetMapping("/v1/username")
    public String username() {
        return username;
    }

}
